import request from '@/utils/request'

// 查询审核列表
export function listConfirm(query) {
  return request({
    url: '/oa/confirm/list',
    method: 'get',
    params: query
  })
}

// 查询审核详细
export function getConfirm(confirmUuid) {
  return request({
    url: '/oa/confirm/' + confirmUuid,
    method: 'get'
  })
}

// 新增审核
export function addConfirm(data) {
  return request({
    url: '/oa/confirm',
    method: 'post',
    data: data
  })
}

// 修改审核
export function updateConfirm(data) {
  return request({
    url: '/oa/confirm',
    method: 'put',
    data: data
  })
}

// 删除审核
export function delConfirm(confirmUuid) {
  return request({
    url: '/oa/confirm/' + confirmUuid,
    method: 'delete'
  })
}


// 审核 - 通用
export function commonConfirm(data) {
  return request({
    url: '/oa/confirm/commonConfirm',
    method: 'put',
    data: data
  })
}

